package com.baili.service.distribution;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baili.dao.distribution.DistributionDao;
import com.baili.dto.ProductOrder;

/** 
 * @author iceX
 * @version 创建时间：2016年4月14日 下午5:38:38 
 * @Name: DistributionServiceImpl.java
 */
@Service
public class DistributionServiceImpl implements DistributionService{

	@Autowired
	private DistributionDao distributionDao;
	
	@Override
	public List<Map<String, Object>> getDistributionList(ProductOrder productOrder) {
		
		return distributionDao.getDistributionList(productOrder);
	}

	@Override
	public List<Map<String, Object>> getDistributionDetail(
			ProductOrder productOrder) {
		
		return distributionDao.getDistributionDetail(productOrder);
	}

	@Override
	public int getDistributionCount() {
		
		return distributionDao.getDistributionCount();
	}

	@Override
	public int noMatchingStaffTypeCount() {
		
		return distributionDao.noMatchingStaffTypeCount();
	}

	@Override
	public int matchingStaffTypeCount() {
		
		return distributionDao.matchingStaffTypeCount();
	}

	@Override
	public List<Map<String, Object>> getDistributionByNormed(
			ProductOrder productOrder) {
		
		return distributionDao.getDistributionByNormed(productOrder);
	}

	@Override
	public List<Map<String,Object>> getNormedCountB(ProductOrder productOrder) {
		
		return distributionDao.getNormedCountB(productOrder);
	}

	@Override
	public List<Map<String,Object>> getNormedCountZ(ProductOrder productOrder) {
		
		return distributionDao.getNormedCountZ(productOrder);
	}

	@Override
	public List<Map<String,Object>> getNormedCountC(ProductOrder productOrder) {
		
		return distributionDao.getNormedCountC(productOrder);
	}

	@Override
	public void updateDistribution(ProductOrder productOrder) {
		distributionDao.updateDistribution(productOrder);
	}

	@Override
	public void updateDistributionByNormed(ProductOrder productOrder) {
		
		distributionDao.updateDistributionByNormed();
	}
	
	@Override
	public List getDistributionBySize(ProductOrder productOrder) {
		
		return distributionDao.getDistributionBySize(productOrder);
	}
	@Override
	public List getDistributionListBPOIP(ProductOrder productOrder) {
		
		return distributionDao.getDistributionListBPOIP(productOrder);
	}
	
	@Override
	public List getDistributionListBPOI(ProductOrder productOrder) {
		
		return distributionDao.getDistributionListBPOI(productOrder);
	}

}
